package com.emm.yixun.common.model.dto;

import net.sf.oval.constraint.NotEmpty;

/**
 * OA系统对接部门表
 * 
 * @author Administrator
 *
 */
public class HrmDepartment {
    // 是否封存[组织结构调整，原废弃部门是否封存？] 1 代表封存 0 未封存
    @NotEmpty(message = "部门封存状态不能为空")
    private String canceled;
 
    // 部门编码
    @NotEmpty(message = "部门编码不能为空")
    private String departmentCode;
    
    // 部门名称
    @NotEmpty(message = "部门名称不能为空")
    private String departmentname;
  
    // 部门类别
    @NotEmpty(message = "部门类别不能为空")
    private String hrmdepartmentCategory;
    
    // 所属公司编码
    @NotEmpty(message = "所属公司编码不能为空")
    private String subcompanyCode;
    
    // 上级部门编码 ，一级部门为0
    @NotEmpty(message = "上级部门编码不能为空")
    private String supdepCode;

    public String getCanceled() {
	return canceled;
    }

    public void setCanceled(String canceled) {
	this.canceled = canceled;
    }

    public String getDepartmentCode() {
	return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
	this.departmentCode = departmentCode;
    }

    public String getDepartmentname() {
	return departmentname;
    }

    public void setDepartmentname(String departmentname) {
	this.departmentname = departmentname;
    }

    public String getHrmdepartmentCategory() {
	return hrmdepartmentCategory;
    }

    public void setHrmdepartmentCategory(String hrmdepartmentCategory) {
	this.hrmdepartmentCategory = hrmdepartmentCategory;
    }

    public String getSubcompanyCode() {
	return subcompanyCode;
    }

    public void setSubcompanyCode(String subcompanyCode) {
	this.subcompanyCode = subcompanyCode;
    }

    public String getSupdepCode() {
	return supdepCode;
    }

    public void setSupdepCode(String supdepCode) {
	this.supdepCode = supdepCode;
    }

    public HrmDepartment(String canceled, String departmentCode,
	    String departmentname, String hrmdepartmentCategory,
	    String subcompanyCode, String supdepCode) {
	super();
	this.canceled = canceled;
	this.departmentCode = departmentCode;
	this.departmentname = departmentname;
	this.hrmdepartmentCategory = hrmdepartmentCategory;
	this.subcompanyCode = subcompanyCode;
	this.supdepCode = supdepCode;
    }

    public HrmDepartment() {
	super();
    }

}
